Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PlistBuddy instead of defaults in scripts #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

interstateone
Copy link

The defaults command will sometimes fail with an error like this:

The domain/default pair of (.../FraudForce.framework/Info.plist, CFBundleExecutable) does not exist

The defaults command seems intended for use with the macOS preferences system. Included in its man page is:

WARNING: The defaults command will be changed in an upcoming major release to only operate on preferences domains. General plist manipulation utilities will be folded into a different command-line program.

Perhaps Catalina is that upcoming major release 😅

A better alternative to using defaults is PlistBuddy. If you replace the defaults command in the scripts with /usr/libexec/PlistBuddy -c "Print :CFBundleExecutable" "${OUTPUT_FRAMEWORK_PATH}/Info.plist" then it will return the same value and shouldn't fail with the error quoted above.

Resolves #4

The defaults command will sometimes fail with an error like this:

> The domain/default pair of (.../FraudForce.framework/Info.plist, CFBundleExecutable) does not exist

The defaults command seems intended for use with the macOS preferences system. Included in its man page is:

> WARNING: The defaults command will be changed in an upcoming major release to only operate on preferences domains. General plist manipulation utilities will be folded into a different command-line program.

Perhaps Catalina is that upcoming major release 😅

A better alternative to using defaults is PlistBuddy. If you replace the defaults command in slim-build-frameworks.sh with /usr/libexec/PlistBuddy -c "Print :CFBundleExecutable" "${OUTPUT_FRAMEWORK_PATH}/Info.plist" then it will return the same value and shouldn't fail with the error quoted above.
Copy link

@skwashua skwashua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixed the Catalina related issue I was having.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Command PhaseScriptExecution failed with a nonzero exit code
2 participants